package com.test.mapper.enitites;

import com.test.utils.enums.AbstractEnum;

public enum PropertyType implements AbstractEnum<Integer> {

	NUMBER(0),
	TEXT(1),
	DATE(2),
	ENTITY(10);

	private final int value;

	private PropertyType(final int value) {
		this.value = value;
	}

	public final Integer getValue() {
		return value;
	}

	public static PropertyType getByValue(final int value) {
		for (PropertyType pt : values()) {
			if (pt.value == value) return pt;
		}
		return null;
	}
}
